# 1
# for循环
size1 = 5
j = 1
for i in range(size1):
    for j in range(1, 1 + j):
        print("*", end="  ")
        j += 1
    print()
# while循环
size1 = 5
j = 1
while j <= size1:
    g = 1
    while g <= j:
        print("*", end="  ")
        g += 1
    j += 1
    print()
# 2
# for循环
size2 = 9
j = 1
for i in range(1, size2 + 1):
    b = 1
    for j in range(1, 1 + j):
        print(str(b) + "*" + str(i) + "=" + str(i * j), end="  ")
        j += 1
        b += 1
    print()
# while循环
size2 = 9
j = 1
i = 1
while i <= size2:
    b = 1
    while b <= j:
        print(str(b) + "*" + str(i) + "=" + str(i * b), end="  ")
        b += 1
    i += 1
    j += 1
    print()
# 3
# for循环
for i in range(1, 6):
    c = 1
    for j in range(1, 10):
        print(str(i) + "0" + str(c) + "号", end="  ")
        c += 1
    print()
# while循环
i = 1
while i <= 5:
    c = 1
    j = 1

    while j <= 9:
        print(str(i) + "0" + str(c) + "号", end="  ")
        c += 1
        j += 1
    i += 1
    print()
